import BasicLayout from '@/layouts/basic-layout'

const meta = {
  auth: true
}

const pre = 'user-'

export default {
  path: '/user',
  name: 'user',
  redirect: {
    name: `${pre}userList`
  },
  meta,
  component: BasicLayout,
  children: [
    {
      path: 'list',
      name: `${pre}list`,
      meta: {
        ...meta,
        title: '用户列表',
      },
      component: () => import('@/pages/user/userList')
    },
    {
      path: 'patient',
      name: `${pre}patient`,
      meta: {
        ...meta,
        title: '就诊人',
      },
      component: () => import('@/pages/user/patient')
    },
    {
      path: 'make',
      name: `${pre}make`,
      meta: {
        ...meta,
        title: '预约列表',
      },
      component: () => import('@/pages/user/make')
    }
  ]
}
